//
//  WLRecallModel.m
//  WanLian
//
//  Created by 123456 on 2018/12/27.
//  Copyright © 2018 wanlian. All rights reserved.
//

#import "WLRecallModel.h"

@implementation WLRecallModel

+ (instancetype)createWithProgressBlock:(ProgressBlcok)progressBlcok successBlock:(SuccessBlock)successBlock faliureBlock:(FailureBlock)faliureBlock {
    WLRecallModel *recallModel = [[WLRecallModel alloc] init];
    recallModel.progressBlcok = progressBlcok;
    recallModel.successBlock = successBlock;
    recallModel.faliureBlock = faliureBlock;
    return recallModel;
}

+ (instancetype)createWithProgressBlock:(ProgressBlcok)progressBlcok successBlock:(SuccessBlock)successBlock faliureBlock:(FailureBlock)faliureBlock errorBlock:(ErrorBlock)err {
    WLRecallModel *recallModel = [[WLRecallModel alloc] init];
    recallModel.progressBlcok = progressBlcok;
    recallModel.successBlock = successBlock;
    recallModel.faliureBlock = faliureBlock;
    recallModel.errorBlock = err;
    return recallModel;
}

+ (instancetype)createWithDownloadProgressBlock:(DownloadProcessBlock)progressBlcok successBlock:(SuccessBlock)successBlock faliureBlock:(FailureBlock)faliureBlock errorBlock:(ErrorBlock)err {
    WLRecallModel *recallModel = [[WLRecallModel alloc] init];
    recallModel.downloadProgressBlcok = progressBlcok;
    recallModel.successBlock = successBlock;
    recallModel.faliureBlock = faliureBlock;
    recallModel.errorBlock = err;
    return recallModel;
}
@end
